<?php
                     
            $full_name  =   $_GET['full_name'];
            $username   =   $_GET['username'];
            $pass       =   $_GET['password'];
            $password   =   md5($pass);
            $email      =   $_GET['email'];
            $address    =   $_GET['address'];

            mysql_connect("localhost","root","");
            mysql_select_db("trial");
            $q= "insert into users (`id`,`full_name`,`username`, `password`,`email`,`address`) values (NULL,'$full_name','$username','$password','$email','$address')";
            if (mysql_query($q)) header ("location:index.php");
            else {                
                mysql_error();
                die("insert failed");
            }

            
            /*echo "$q";
                $query = "select * from users";
                $result = mysql_query($query);
                while($newar = mysql_fetch_assoc($result))
                {   echo "<pre>";
                        print_r($newar);
                    echo "</pre>";
                } */

            
                ?>